﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Description;
using System.Text;
using System.Threading.Tasks;
using IsikFx.Project.WcfService;
namespace IsikFx.Project.WcfHost
{
    class Program
    {
        static void Main(string[] args)
        {
            //Uri baseAddress = new Uri("http://212.253.76.4/IsikFxService");
            Uri baseAddress2 = new Uri("http://localhost:99/IsikFxService");
            //Uri baseAddress3 = new Uri("net.tcp://localhost/IsikFxService");

            using (ServiceHost host = new ServiceHost(typeof(Service), baseAddress2))
            {
                ServiceMetadataBehavior smb = new ServiceMetadataBehavior();
                smb.HttpGetEnabled = true;
                host.Description.Behaviors.Add(smb);
                host.Open();
                Console.WriteLine("IsikFx Service started..");
                Console.WriteLine("Please <Enter> to stop service");
                Console.ReadKey();
                host.Close();
            }
        }
    }
}
